﻿using AutoSelfApp.Entity;
using DevExpress.XtraEditors;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace AutoSelfApp.Views
{
    public partial class HospGuide : DevExpress.XtraEditors.XtraUserControl,IPageCtrl
    {
        
        public HospGuide()
        {
            InitializeComponent();
        }

        public void ClearScreen()
        {

        }

        public void StartTime()
        {
            timer1.Enabled = true;
            timer1.Start();
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            lbltime.Text = PriceConstants.time.ToString();
        }


        private void pictureEditSample_Properties_ContextButtonValueChanged(object sender,
            DevExpress.Utils.ContextButtonValueEventArgs e)
        {
            if (e.Item.Name == "TrackBarContextButton")
            {
                pictureEditSample.Properties.ZoomPercent = Convert.ToDouble(e.Value);
            }
        }

        private void pictureEditSample_ZoomPercentChanged(object sender, EventArgs e)
        {
            trackBarContextButton1.Value = Convert.ToInt32(pictureEditSample.Properties.ZoomPercent);
        }
    }
}